5 'This program will only work on in the standard graphics color mode and does not support the advanced features of the MANDELBROT EXPLORER program, such as saving the screen and exit checks
7 '
10 SCREEN 1: KEY OFF
20 INPUT "What is the real part";ACORN#
30 INPUT "What is the imaginary part";BCORN#
40 INPUT "What is the length of the side";SIDE#
50 ROWS% = 200: SCRSCL = .9259 'scrscl is the pixel height to width ratio and is used to make the picture square
60 GOSUB 1200: CLS
70 FOR MR% = 1 TO ROWS%
80 FOR NC% = 1 TO COLS%
90 GOSUB 1300
100 COUNT% = 100: AZ# = 0: BZ# = 0: FLAG% = -1 'count% is 1000 in .EXE files
110 WHILE COUNT% <> 0 AND FLAG%
120 COUNT% = COUNT% - 1
130 GOSUB 1010
140 WEND
150 CLR% = INT(COUNT% / 34) + 1
160 IF COUNT% = 0 THEN CLR% = 0
170 PSET (NC% + 50,MR% - 1),CLR%
180 NEXT NC%
190 NEXT MR%
200 '
210 'AZ# is the real part of Z, BZ# is the imaginary part of Z
220 'AC# is the real part of C, BC# is the imaginary part of C
230 'Z# is the size of Z
998 END
999 '*****
1010 'main calculation routine
1020 NAZ# = AZ# * AZ# - BZ# * BZ# + AC# 'new value for AZ#